package com.beiming.sensor

import android.content.Intent
import android.view.View
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : BaseActivity(), View.OnClickListener {

    override fun getContentResId() = R.layout.activity_main

    override fun initView() {
        btn_show_all_sensor.setOnClickListener(this)
    }

    override fun initData() {

    }

    override fun onClick(v: View?) {
        when (v) {
            btn_show_all_sensor -> startActivity(Intent(this, AllSensorsActivity::class.java))
        }
    }
}
